import request from '@/utils/request'

export default {
    //查询酒店列表
    getHotelTypeById(id) {
        return request({
            url: `/inner/hotelType/getHotelTypeById/${id}`,
            method: 'get'
        })
    },

    //带条件的分页查询
    getHotelType(current, limit,hotelQuery) {
        return request({
            url: `/inner/hotelType/getHotelType/${current}/${limit}`,
            method: 'post',
            data: hotelQuery //转化json传递
        })
    },
    //根据删除讲师
    delHotelType(id) {
        return request({
            url: `/inner/hotelType/delHotelType/${id}`,
            method: 'delete',
        })
    },

    //新增讲师
    addHotelType(hotelType){
        return request({
            url: `/inner/hotelType/addHotelType/`,
            method: 'post',
            data: hotelType   //转化json传递
        })
    },

    //执行修改操作
    updateHotelType(hotelType){
        return request({
            url: `/inner/hotelType/updateHotelType`,
            method: 'post',
            data: hotelType   //转化json传递
        })
    },

       //统计

}